package com.huacheng.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.huacheng.cms.model.Article;
import com.huacheng.cms.model.vo.ArticleVo;

@Repository
public interface ArticleMapper {

	ArticleVo selectByPrimaryKey(long articleid);

	List<ArticleVo> selectByPrimaryKeys(@Param("ids") String ids);

	int deleteByPrimaryKey(Long articleid);

	int deleteBySelective(@Param("record") Article record);

	int insertSelective(Article record);

	int updateByPrimaryKeySelective(Article record);

	int selectBySelectiveCount(Article record);

	List<ArticleVo> selectBySelective(@Param("record") Article record, @Param("offset") long offset,
			@Param("rows") long rows);
}